﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Showroom.DAL;
using System.Collections.Specialized;
using System.Data.SqlClient;
using System.Data;

namespace Showroom.BLL
{
    public class View_CategoryProducts : _View_CategoryProducts
    {
        public static View_CategoryProducts GetListProductByCategoryID(int CategoryID)
        {
            try
            {
                View_CategoryProducts cProds = new View_CategoryProducts();
                cProds.Where.CategoryID.Value = CategoryID;
                cProds.Query.Load();
                return cProds;
            }
            catch (Exception ex)
            {
                throw (ex);
            }
        }
    }
}
